package com.springboot.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.erp.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    Order selectOrderList(@Param("id") Long id);

    int insertOrder(Order entity);

    int insertDepotItem(Order entity);

    int updateOrderById(Order entity);

    int updateOrderItem(Order entity);


    int deleteOrderById(@Param("id") Long id);

    int deleteDepotItemByHeaderId(@Param("id") Long id);

}
